﻿using UnityEngine;
using UnityEngine.UI;

namespace BaseLib
{
    public static class TweenHelper
    {
        public static Tweener<Color, ColorHelper> DOColor(this Image target, Color endValue, float duration)
        {
            return TweenMgr.To(() => target.color, x => target.color = x, endValue, duration);
        }

        public static Tweener<Vector3, _V3Helper> DOScale(this Transform target, Vector3 endValue, float duration)
        {
            return TweenMgr.To(() => target.localScale, x => target.localScale = x, endValue, duration);
        }

    }
}